#nullable enable
using System;

namespace REP.Domain.Entities
{
    /// <summary>
    /// BOM 配件明细（从“选择物品”弹窗选择后添加）
    /// </summary>
    public class BomAccessory : BaseEntity
    {
        /// <summary>所属 BOM Id</summary>
        public Guid? BomId { get; set; }
        /// <summary>物品 Id（引用物品主数据）</summary>
        public Guid? ItemId { get; set; }
        /// <summary>物品编号</summary>
        public string? ItemCode { get; set; }
        /// <summary>物品名称</summary>
        public string? ItemName { get; set; }
        /// <summary>规格型号</summary>
        public string? SpecModel { get; set; }
        /// <summary>单位</summary>
        public string? Unit { get; set; }
        /// <summary>物品类型</summary>
        public string? ItemType { get; set; }
        /// <summary>物品分类</summary>
        public string? Category { get; set; }
        /// <summary>品牌</summary>
        public string? Brand { get; set; }
        /// <summary>总库存</summary>
        public decimal? TotalStock { get; set; }
        /// <summary>采购单价价格</summary>
        public decimal? PurchasePrice { get; set; }
        /// <summary>销售单价价格</summary>
        public decimal? SalesPrice { get; set; }
        /// <summary>用量（BOM 中该配件的使用数量）</summary>
        public decimal? Qty { get; set; }
        /// <summary>排序/行号</summary>
        public int? Sort { get; set; }
    }
}
